package com.android.slidingmenuexample.menuactivities;

import com.android.slidingmenuexample.R;
import com.android.slidingmenuexample.R.id;
import com.android.slidingmenuexample.R.layout;
import com.android.slidingmenuexample.R.menu;

import android.app.Dialog;
import android.content.DialogInterface;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class MyInfoActivity extends Activity {
   
   TextView tvMyName;
   TextView tvMyEmail;      
   TextView tvMyAge;      
   TextView tvMyAddress;   
   TextView tvMyGender;


   @Override
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_my_info);
      
      tvMyName = (TextView)findViewById(R.id.MyName);   
      tvMyName.setText("순조");   
      
      tvMyEmail= (TextView)findViewById(R.id.MyEmail);   
      tvMyEmail.setText("jsj9200@naver.com");   
      
      tvMyAge = (TextView)findViewById(R.id.MyAge);   
      tvMyAge.setText("24");   
      
      tvMyAddress = (TextView)findViewById(R.id.MyAddress);   
      tvMyAddress.setText("대방동");
      
      tvMyGender = (TextView)findViewById(R.id.MyGender);   
      tvMyGender.setText("여자");
      
      Button btEditMyInfo = (Button)findViewById (R.id.btn_edit_my_info);
      btEditMyInfo.setOnClickListener(new Button.OnClickListener()  {
         @Override
            public void onClick(View arg0) {
 
                // Create custom dialog object
                Dialog dialog = new Dialog(MyInfoActivity.this);
                // Include dialog.xml file
                dialog.setContentView(R.layout.dialog_edit_my_info);
                // Set dialog title
                dialog.setTitle("내 정보 수정");

                dialog.show();
 
         }
      });
   }   
}
   